package cn.edu.gdut.deepcode.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * <p>
 * 开启WebSocket支持
 * </p>
 *
 * @Author: myc
 * @Since: 2025-04-13  21:31
 * @Version: 1.0.0
 */
//@Configuration
public class WebSocketConfig {

    /*
    * 扫描添加有@ServerEndpoint注解的Bean
    * */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
